package org.particlethink.entry;

public enum RoleTyp implements IntEnum {
    Company(1), Project(2), Supplier(3);

    private final int code;

    RoleTyp(int code) {
        this.code = code;
    }


    @Override
    public int getCode() {
        return this.code;
    }

    public static RoleTyp valueOf(int code) {
        switch (code) {
            case 1:
                return Company;
            case 2:
                return Project;
            case 3:
                return Supplier;
        }
        return null;
    }
}
